package com.liuguang.search.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * @ClassName: ArticleIndex
 * @Description：
 * @Author: wanghr
 * Date: 2:52 PM 2020/10/20
 * Version: 1.0
 */
@Data
@Document(indexName = "article",type = "docs", shards = 1, replicas = 0)
public class ArticleIndex {
    /**
     * 文章主键
     */
    @Id
    private Integer id;
    /**
     * 文章名
     */
//    @Field()
    private String articleName;
    /**
     * 文章概要
     */
    private String articleEpitome;
    /**
     * 作者名称
     */
    private String articleAuthor;
    /**
     * 点赞数
     */
    private Integer likeCount;
    /**
     * 评论数
     */
    private Integer commentCount;

    /**
     * 文章完整内容
     */
    private String articleContent;
}
